package com.jinzecloud.reportapproval.service.impl;

import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jinzecloud.reportapproval.utils.PageUtils;
import com.jinzecloud.reportapproval.utils.Query;

import com.jinzecloud.reportapproval.mapper.ProductSpecificationDataMapper;
import com.jinzecloud.reportapproval.bean.ProductSpecificationData;
import com.jinzecloud.reportapproval.service.ProductSpecificationDataService;


@Service("productSpecificationDataService")
public class ProductSpecificationDataServiceImpl extends ServiceImpl<ProductSpecificationDataMapper, ProductSpecificationData> implements ProductSpecificationDataService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ProductSpecificationData> page = this.page(
                new Query<ProductSpecificationData>().getPage(params),
                new QueryWrapper<ProductSpecificationData>()
        );

        return new PageUtils(page);
    }

    @Override
    public List<ProductSpecificationData> getProductData() {
        QueryWrapper<ProductSpecificationData> productSpecificationDataQueryWrapper = new QueryWrapper<>(null);
        return this.list(productSpecificationDataQueryWrapper);
    }

}